package com.incar.chuxing.api;

import com.incar.chuxing.bean.BleLogBean;
import com.incar.chuxing.bean.CarDamageBean;

import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by Michael on 7/11.
 */

public interface ParseApiService {

    //bluetooth log
    @FormUrlEncoded
    @POST("incar/v/car/car-log-stat")
    Call<BleLogBean> commitBleLog(@FieldMap Map<String, String> map, @Field("orderId") String orderId, @Field("carId") String carId, @Field("logType") String logType, @Field("optime") String optime);

    //parse log
    @FormUrlEncoded
    @POST("classes/BLELogEvent")
    Call<ParseApiStore> parseBleLog(@FieldMap Map<String, String> map);

    //parse launch log
    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @POST("classes/clientLaunchLog")
    Call<ParseApiStore> parseLaunchLog(@Body RequestBody body);

    //bluetooth log
    @FormUrlEncoded
    @POST("incar/incar/v/order/recordCancelLog")
    @Headers("x-incar-request-uri:incar/v/order/recordCancelLog")
    Call<ApiStore> commitFindCarLog(@FieldMap Map<String, String> map, @Field("orderId") String orderId);


    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @POST("classes/backcaroiljudgeresult")
    Call<ParseApiStore> commitOilLowLog(@Body RequestBody body);

    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @POST("classes/didTapReturnCarEvent")
    Call<ParseApiStore> commitClickReturnCarLog(@Body RequestBody body);

}
